#ifndef LOG_TXT_TEST_HPP
#define LOG_TXT_TEST_HPP

#include <cppunit/TestCase.h>
#include <cppunit/extensions/HelperMacros.h>
#include "log_txt.hpp"

class log_txt_test : public CppUnit::TestFixture
{
private:
  bobs::services::log_txt *log;

public:
  void setUp() {
    log = new bobs::services::log_txt();
  }

  void tearDown() {
    delete log;
  }

  void testWrite() {
    log->write("Log message.");
    CPPUNIT_ASSERT(true);
  }

  CPPUNIT_TEST_SUITE(log_txt_test);
  CPPUNIT_TEST(testWrite);
  CPPUNIT_TEST_SUITE_END();
};

#endif
